﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web.Mvc;
using MvcPaging;

namespace Coslen.Framework.Logging
{
    public class LoggingIndexModel
    {
        public IPagedList<LogEvent> LogEvents { get; set; }

        public string LoggerProviderName { get; set; }
        public string LogLevel { get; set; }
        public string Period { get; set; }

        public int CurrentPageIndex { get; set; }
        public int PageSize { get; set; }
        public int TotalItemCount { get; set; }
        public int TotalPageCount { get; set; }

        // Drop Down List Options
        public List<SelectListItem> LoggerProviderNameList { get; set; }
        public List<SelectListItem> LogLevelList { get; set; }
        public List<SelectListItem> PeriodList { get; set; }
        public List<SelectListItem> PageSizeList { get; set; }

        public LoggingIndexModel()
        {
            CurrentPageIndex = 0;
            PageSize = 20;
        }
    }
}
